Full-Stack

Welcome Portfolio Projects Contact
↑ Go Back ↑

Reinstall GRUB with EFI files

Reinstall GRUB with EFI files

Arch Linux

mount the destination root to /mnt

mount -t proc /proc /mnt/proc/
mount --rbind /sys /mnt/sys/
mount --rbind /dev /mnt/dev/
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
SHELL=/bin/sh
chroot /mnt
bash

Update the initrd images

update-initramfs -c -k all
grub-mkdevicemap -n
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
os-prober
update-grub